<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>CIAI: Référence du fichier messages/traducteur_message.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">CIAI
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Énumérations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Valeurs énumérées</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b8f7637664a38e012eb6b40bd154637c.html">messages</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<div class="title">Référence du fichier traducteur_message.c</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;stdbool.h&gt;</code><br/>
<code>#include &lt;errno.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="traducteur__message_8h_source.html">traducteur_message.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="messqueue_8h_source.html">../interface/messqueue.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Graphe des dépendances par inclusion de traducteur_message.c:</div>
<div class="dyncontent">
<div class="center"><img src="traducteur__message_8c__incl.png" border="0" usemap="#messages_2traducteur__message_8c" alt=""/></div>
<map name="messages_2traducteur__message_8c" id="messages_2traducteur__message_8c">
<area shape="rect" id="node13" href="traducteur__message_8h.html" title="traducteur_message.h" alt="" coords="395,99,541,127"/><area shape="rect" id="node16" href="messqueue_8h.html" title="../interface/messqueue.h" alt="" coords="443,177,603,205"/></map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr class="memitem:a49cdda73eb2d7f1ce68a4f119834e7e0"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="traducteur__message_8c.html#a49cdda73eb2d7f1ce68a4f119834e7e0">serialiser_message</a> (<a class="el" href="structmessage__t.html">message_t</a> message)</td></tr>
<tr class="memitem:a98c2f26354ccf66e08243284bcf75684"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmessage__t.html">message_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="traducteur__message_8c.html#a98c2f26354ccf66e08243284bcf75684">deserialiser_message</a> (char *message_texte)</td></tr>
<tr class="memitem:a097bb6c21528f8ccc2b6b01ca9a547cd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="traducteur__message_8c.html#a097bb6c21528f8ccc2b6b01ca9a547cd">messages_egaux</a> (<a class="el" href="structmessage__t.html">message_t</a> m1, <a class="el" href="structmessage__t.html">message_t</a> m2)</td></tr>
<tr class="memitem:a5d76d9bb0261966360a63a1eb267923b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="traducteur__message_8c.html#a5d76d9bb0261966360a63a1eb267923b">nb_params_message</a> (int type)</td></tr>
</table>
<a name="details" id="details"></a><h2>Description détaillée</h2>
<div class="textblock"><dl class="section author"><dt>Auteur</dt><dd>H4201 </dd></dl>
</div><h2>Documentation des fonctions</h2>
<a class="anchor" id="a98c2f26354ccf66e08243284bcf75684"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structmessage__t.html">message_t</a> deserialiser_message </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>message_texte</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Traduit le message texte en une structure message. </p>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">message_texte</td><td>Le texte à désérialiser </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie</dt><dd>Le message obtenu à partir du texte. Si le texte ne décrit pas un message valide, le message retourné sera de type -1. </dd></dl>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="traducteur__message_8c_a98c2f26354ccf66e08243284bcf75684_cgraph.png" border="0" usemap="#traducteur__message_8c_a98c2f26354ccf66e08243284bcf75684_cgraph" alt=""/></div>
<map name="traducteur__message_8c_a98c2f26354ccf66e08243284bcf75684_cgraph" id="traducteur__message_8c_a98c2f26354ccf66e08243284bcf75684_cgraph">
<area shape="rect" id="node3" href="traducteur__message_8c.html#a5d76d9bb0261966360a63a1eb267923b" title="nb_params_message" alt="" coords="199,5,340,33"/></map>
</div>
</p>

<p><div class="dynheader">
Voici le graphe des appelants de cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="traducteur__message_8c_a98c2f26354ccf66e08243284bcf75684_icgraph.png" border="0" usemap="#traducteur__message_8c_a98c2f26354ccf66e08243284bcf75684_icgraph" alt=""/></div>
<map name="traducteur__message_8c_a98c2f26354ccf66e08243284bcf75684_icgraph" id="traducteur__message_8c_a98c2f26354ccf66e08243284bcf75684_icgraph">
<area shape="rect" id="node3" href="reception_8h.html#acf09e3aefd6a479fa99960915f0fe66d" title="recevoir" alt="" coords="217,30,284,58"/><area shape="rect" id="node13" href="traducteur__message__test_8c.html#a247637d18253e805cfc6341c24b6dc78" title="START_TEST" alt="" coords="199,81,303,109"/><area shape="rect" id="node5" href="reception__linux_8h.html#a42466b8fdf4ecd00121528fd9ee540a1" title="reception_linux" alt="" coords="353,5,460,33"/><area shape="rect" id="node11" href="reception__test_8c.html#ac20878a6b96ec030582ba3bb28c53e22" title="START_TEST" alt="" coords="355,55,459,83"/><area shape="rect" id="node7" href="mere_8h.html#a5e12a3b6e744060d0371be58ecb80dac" title="mere" alt="" coords="509,5,560,33"/><area shape="rect" id="node9" href="main_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="608,5,659,33"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a097bb6c21528f8ccc2b6b01ca9a547cd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool messages_egaux </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structmessage__t.html">message_t</a>&#160;</td>
          <td class="paramname"><em>m1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structmessage__t.html">message_t</a>&#160;</td>
          <td class="paramname"><em>m2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Indique si deux messages sont égaux </p>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">m1</td><td>L'un des messages à comparer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">m2</td><td>L'autre message à comparer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie</dt><dd>true/1 s'ils sont égaux, false/0 sinon. </dd></dl>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="traducteur__message_8c_a097bb6c21528f8ccc2b6b01ca9a547cd_cgraph.png" border="0" usemap="#traducteur__message_8c_a097bb6c21528f8ccc2b6b01ca9a547cd_cgraph" alt=""/></div>
<map name="traducteur__message_8c_a097bb6c21528f8ccc2b6b01ca9a547cd_cgraph" id="traducteur__message_8c_a097bb6c21528f8ccc2b6b01ca9a547cd_cgraph">
<area shape="rect" id="node3" href="traducteur__message_8c.html#a5d76d9bb0261966360a63a1eb267923b" title="nb_params_message" alt="" coords="175,5,316,33"/></map>
</div>
</p>

<p><div class="dynheader">
Voici le graphe des appelants de cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="traducteur__message_8c_a097bb6c21528f8ccc2b6b01ca9a547cd_icgraph.png" border="0" usemap="#traducteur__message_8c_a097bb6c21528f8ccc2b6b01ca9a547cd_icgraph" alt=""/></div>
<map name="traducteur__message_8c_a097bb6c21528f8ccc2b6b01ca9a547cd_icgraph" id="traducteur__message_8c_a097bb6c21528f8ccc2b6b01ca9a547cd_icgraph">
<area shape="rect" id="node3" href="traducteur__message__test_8c.html#a247637d18253e805cfc6341c24b6dc78" title="START_TEST" alt="" coords="175,5,279,33"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a5d76d9bb0261966360a63a1eb267923b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int nb_params_message </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retourne le nombre de paramètres d'un message selon son type </p>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">type</td><td>Le type du message dont on souhaite connaître le nombre de paramètres </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie</dt><dd>Le nombre de paramètres pour ce type de message. -1 pour un type de message inexistant. </dd></dl>

<p><div class="dynheader">
Voici le graphe des appelants de cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="traducteur__message_8c_a5d76d9bb0261966360a63a1eb267923b_icgraph.png" border="0" usemap="#traducteur__message_8c_a5d76d9bb0261966360a63a1eb267923b_icgraph" alt=""/></div>
<map name="traducteur__message_8c_a5d76d9bb0261966360a63a1eb267923b_icgraph" id="traducteur__message_8c_a5d76d9bb0261966360a63a1eb267923b_icgraph">
<area shape="rect" id="node3" href="traducteur__message_8h.html#a49cdda73eb2d7f1ce68a4f119834e7e0" title="serialiser_message" alt="" coords="204,55,335,83"/><area shape="rect" id="node21" href="traducteur__message_8h.html#a110b2863d19dff5f9a094b42d0c034dc" title="deserialiser_message" alt="" coords="197,106,341,134"/><area shape="rect" id="node30" href="traducteur__message_8h.html#a097bb6c21528f8ccc2b6b01ca9a547cd" title="messages_egaux" alt="" coords="209,157,329,185"/><area shape="rect" id="node5" href="envoi_8h.html#af53be4eaba58d47ceebb3d3dc3aeb721" title="envoyer" alt="" coords="409,5,476,33"/><area shape="rect" id="node19" href="traducteur__message__test_8c.html#a4821272222990eebaee933a87cf5e715" title="START_TEST" alt="" coords="391,55,495,83"/><area shape="rect" id="node7" href="envoi_8h.html#a11d5b87d56edc94eae8a4d95d38271fe" title="envoi_linux" alt="" coords="555,5,640,33"/><area shape="rect" id="node9" href="mere_8h.html#aa1f9e596f42da073eb45d24686f43ef9" title="lancer_thread_envoi" alt="" coords="700,5,836,33"/><area shape="rect" id="node11" href="reception__linux_8h.html#a59373e9a9845cc0fd224520496bb1d67" title="initialiser_application" alt="" coords="885,5,1027,33"/><area shape="rect" id="node13" href="reception__linux_8h.html#a42466b8fdf4ecd00121528fd9ee540a1" title="reception_linux" alt="" coords="1076,30,1183,58"/><area shape="rect" id="node15" href="mere_8h.html#a5e12a3b6e744060d0371be58ecb80dac" title="mere" alt="" coords="1232,30,1283,58"/><area shape="rect" id="node17" href="main_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="1331,30,1381,58"/><area shape="rect" id="node23" href="reception_8h.html#acf09e3aefd6a479fa99960915f0fe66d" title="recevoir" alt="" coords="409,106,476,134"/><area shape="rect" id="node28" href="traducteur__message__test_8c.html#a247637d18253e805cfc6341c24b6dc78" title="START_TEST" alt="" coords="391,157,495,185"/><area shape="rect" id="node26" href="reception__test_8c.html#ac20878a6b96ec030582ba3bb28c53e22" title="START_TEST" alt="" coords="545,106,649,134"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a49cdda73eb2d7f1ce68a4f119834e7e0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* serialiser_message </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structmessage__t.html">message_t</a>&#160;</td>
          <td class="paramname"><em>message</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Transforme le message décrit par la structure message en une chaine de caractères </p>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">message</td><td>Le message à sérialiser </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie</dt><dd>La chaîne de caractères créée à partir du message, <code>NULL</code> si le message est invalide </dd></dl>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="traducteur__message_8c_a49cdda73eb2d7f1ce68a4f119834e7e0_cgraph.png" border="0" usemap="#traducteur__message_8c_a49cdda73eb2d7f1ce68a4f119834e7e0_cgraph" alt=""/></div>
<map name="traducteur__message_8c_a49cdda73eb2d7f1ce68a4f119834e7e0_cgraph" id="traducteur__message_8c_a49cdda73eb2d7f1ce68a4f119834e7e0_cgraph">
<area shape="rect" id="node3" href="traducteur__message_8c.html#a5d76d9bb0261966360a63a1eb267923b" title="nb_params_message" alt="" coords="185,5,327,33"/></map>
</div>
</p>

<p><div class="dynheader">
Voici le graphe des appelants de cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="traducteur__message_8c_a49cdda73eb2d7f1ce68a4f119834e7e0_icgraph.png" border="0" usemap="#traducteur__message_8c_a49cdda73eb2d7f1ce68a4f119834e7e0_icgraph" alt=""/></div>
<map name="traducteur__message_8c_a49cdda73eb2d7f1ce68a4f119834e7e0_icgraph" id="traducteur__message_8c_a49cdda73eb2d7f1ce68a4f119834e7e0_icgraph">
<area shape="rect" id="node3" href="envoi_8h.html#af53be4eaba58d47ceebb3d3dc3aeb721" title="envoyer" alt="" coords="204,5,271,33"/><area shape="rect" id="node17" href="traducteur__message__test_8c.html#a4821272222990eebaee933a87cf5e715" title="START_TEST" alt="" coords="185,55,289,83"/><area shape="rect" id="node5" href="envoi_8h.html#a11d5b87d56edc94eae8a4d95d38271fe" title="envoi_linux" alt="" coords="339,5,424,33"/><area shape="rect" id="node7" href="mere_8h.html#aa1f9e596f42da073eb45d24686f43ef9" title="lancer_thread_envoi" alt="" coords="473,5,609,33"/><area shape="rect" id="node9" href="reception__linux_8h.html#a59373e9a9845cc0fd224520496bb1d67" title="initialiser_application" alt="" coords="659,5,800,33"/><area shape="rect" id="node11" href="reception__linux_8h.html#a42466b8fdf4ecd00121528fd9ee540a1" title="reception_linux" alt="" coords="849,5,956,33"/><area shape="rect" id="node13" href="mere_8h.html#a5e12a3b6e744060d0371be58ecb80dac" title="mere" alt="" coords="1005,5,1056,33"/><area shape="rect" id="node15" href="main_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="1104,5,1155,33"/></map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Généré le Lundi Décembre 17 2012 02:23:17 pour CIAI par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>
